<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>NCUT 猫</title>
    <!-- jquery -->
    <script src="./lib/jquery.min.js"></script>
    <script src="./lib/jquery.form.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="./lib/bootstrap.min.css">
    <link rel="stylesheet" href="./lib/bootstrap-theme.min.css">
    <script src="./lib/bootstrap.min.js"></script>
    <!-- SHA256 -->
    <script type="text/javascript" src="./lib/core-min.js"></script>
    <script type="text/javascript" src="./lib/sha256.js"></script>
    <script type="text/javascript" src="./lib/enc-base64-min.js"></script>
    <!-- js -->
    <script src="./js/ConstData.js"></script>
    <script src="./js/main.js"></script>
</head>

<body>
    <div>
        <h1>登录</h1>
        <p>用户名: <input id="username" type="text" name="username" /></p>
        <p>密码:<input id="password" type="password" name="password" /></p>
        <p><button type="button" class="btn btn-primary" onclick="login($('#username').val(),$('#password').val())">登录</button></p>
        <hr>
    </div>
    <div>
        <h1>上传图片</h1>
        <p><input id="uploadFile" type="file" name="uploadFile" /></p>
        <p><button type="button" class="btn btn-primary" onclick="upload()">上传</button></p>
        <hr>
    </div>
    <div>
        <h1>获取猫咪信息</h1>
        <hr>
        <h2>全部猫咪</h2>
        <p><button type="button" class="btn btn-primary" onclick="getAllCat()">获取全部猫咪信息</button></p>
        <table class="table table-bordered table-hover tKey_basic_info" id="allCatResult">
        </table>
        <hr>
        <h2>猫咪类别</h2>
        <p><button type="button" class="btn btn-primary" onclick="getTypeCat()">获取猫咪分类</button></p>
        <table class="table table-bordered table-hover" id="typeCatResult">
        </table>
        <hr>
        <h2>单一猫咪信息</h2>
        <p><button type="button" class="btn btn-primary" onclick="getCat()">获取猫咪信息</button></p>
        <table class="table table-bordered table-hover tKey_basic_info" id="catResult">
        </table>
        <hr>
    </div>
    <div>
        <button onclick="console.log(getRealData('i',0));">getRealData('i',0)</button>
        <button onclick="console.log(tableKey);">tableKey</button>
        <button onclick="console.log(getTableNameValues('basic_info','color'));">getTableNameValues('basic_info','color')</button>
        <button onclick="test__cat__create();">test__cat__create()</button>
        <button onclick="test__cat__update();">test__cat__update()</button>
        <button onclick="test__cat__remove();">test__cat__remove()</button>
        <button onclick="test__notice__get();">test__notice__get()</button>
        <button onclick="test__user__get();">test__user__get()</button>
    </div>
</body>

</html>